<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <title>后台管理</title>
    {load href="__PUBLIC__/static/admin/css/common.css" /}
    {load href="__PUBLIC__/static/admin/css/main.css" /}
    {load href="__PUBLIC__/static/admin/js/libs/modernizr.min.js" /}
    {load href="__PUBLIC__/static/admin/js/checkAll.js" /}
</head>
<body>
<!--页面顶部导航模块-->
{include file="public/top" /}

<div class="container clearfix">

  <!--页面左侧导航模块-->
  {include file="public/left" /}
    <!--/sidebar-->
    <!--/sidebar-->
    <div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="{:url('Index/index')}">后台</a><span class="crumb-step">&gt;</span><span class="crumb-name">配置管理</span></div>
        </div>

        <div class="result-wrap">
            <form name="myform" id="myform" method="post" action="batch_delete">
                <div class="result-title">
                    <div class="result-list">
                        <a href="{:url('config/insert')}"><i class="icon-font"></i>新增配置项</a>
                        <a id="batchDel" href="javascript:void(0)" onclick="document:myform.submit();"><i class="icon-font"></i>批量删除</a>
                        <!--<a id="updateOrd" href="javascript:void(0)"><i class="icon-font"></i>更新排序</a>-->
                    </div>
                </div>
                <div class="result-content">
                    
                      <table class="result-tab" id="article_list" width="100%">
                          <tr>
                              <th class="tc" width="5%"><input class="allChoose" name="" type="checkbox" onclick="checkAll(this, 'article_list', 'article_item');"></th>
                              <th width="5%">ID</th>
                              <th width="10%">中文名</th>
                              <th width="10%">英文名</th>
                              <th width="10%">可选项</th>
                              <th width="10%">当前值</th>
                              <th width="10%">字段类型</th>
                              <th width="13%">创建时间</th>
                              <!--<th width="13%">更新时间</th>-->
                              <th width="10%">操作</th>
                          </tr>
                          {volist name="CONF" id="vo"  empty="暂时没有数据"}
                          <tr>
                              <td class="tc"><input class="article_item" name="id[]" value="{$vo.id}" type="checkbox"></td>
                              <td>{$vo.id}</td>
                              <td title={$vo.name_cn} class="tl">{$vo.name_cn}</td>
                              <td title={$vo.name} class="tl">{$vo.name}</td>
                              <td title={$vo.option} class="tl">{$vo.option}</td>
                              <td title={$vo.value} class="tl te w200">{$vo.value}</td>
                              <td>
                                {switch name="$vo.type"}
                                  {case value="0"}单选{/case}
                                  {case value="1"}单行文本{/case}
                                  {case value="2"}多行文本{/case}
                                  {default /}default
                                {/switch}
                              </td>
                              <td title={$vo.create_time}>{$vo.create_time}</td>
                              <td>
                                  <a class="link-update" href="{:url('edit',array('id'=>$vo.id))}">修改</a> |
                                  <a class="link-del" href="{:url('delete',array('id'=>$vo.id))}" onclick ="return confirm('确定删除该配置项?')" >删除</a>
                              </td>
                          </tr>
                          {/volist}
                      </table>
                      <div class="list-page">                
                        {if condition="empty($CONF) neq true"} {$CONF->render()}
                        {/if}
                      </div>
                </div>
            </form>
        </div>
    </div>
    <!--/main-->
</div>
</body>
</html>